<?php

/**
 * Security Kernel Handler
 * @author ReGeDa
 * @events :captcha
 */
class Kernel_Handler extends Event_Handler {

	/**
	 * Captcha image
	 * Uses Captcha3D plugin
	 * Saves security code in memcache
	 */
	public function on_captcha() {

		// set security code for captcha
		platcode()->plugins->import('Captcha3D')->render(
			platcode()->plugins->import('Session')->random_code()
		);

		// normal exit
		platcode()->terminate();		
	}

}

// end of file